/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/28 上午9:50
 * LastModified: 2020/03/28 09:50:28
 */

package com.qolome.knowledge.design.pattern.observer.demo.mouseevent;

import com.qolome.knowledge.design.pattern.observer.demo.mouseevent.handler.Mouse;
import com.qolome.knowledge.design.pattern.observer.demo.mouseevent.handler.MouseEventLisenter;
import com.qolome.knowledge.design.pattern.observer.demo.mouseevent.handler.MouseEventType;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 03月28日 09:50:39
 */
public class Test {


    public static void main(String[] args) {
        MouseEventLisenter lisenter = new MouseEventLisenter();
        Mouse mouse = new Mouse();
        mouse.addLisenter(MouseEventType.ON_CLICK,lisenter);
        mouse.addLisenter(MouseEventType.ON_MOVE,lisenter);
        mouse.click();
        mouse.move();


    }
}
